home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / workbench / term_4.8 / extras / source / term-source.lha / PhoneLog.h < prev    next >
C/C++ Source or Header  |  1997-03-11  |  5KB  |  164 lines

  1.  /* Copyright © 1997 Kai Hofmann. All rights reserved. */
  2.  
  3. #ifndef _PHONELOG_H
  4. #define _PHONELOG_H 1
  5.  
  6.  #ifndef PHONELOG
  7.    struct PhoneLogEntry {
  8.                          char        Number[30+1];
  9.                          char        Name[80+1];
  10.                          char        Reason[80+1];
  11.  
  12.                          char        ProgramName[32];
  13.                          unsigned short    ProgramVersion;
  14.                          unsigned short    ProgramRevision;
  15.  
  16.                          unsigned short    StartDay;
  17.                          unsigned short    StartMonth;
  18.                          int        StartYear;
  19.                          unsigned short    StartHour;
  20.                          unsigned short    StartMin;
  21.                          unsigned short    StartSec;
  22.  
  23.                          unsigned short    EndDay;
  24.                          unsigned short    EndMonth;
  25.                          int        EndYear;
  26.                          unsigned short    EndHour;
  27.                          unsigned short    EndMin;
  28.                          unsigned short    EndSec;
  29.  
  30.                          unsigned short    Hours;
  31.                          unsigned short    Mins;
  32.                          unsigned short    Secs;
  33.                         };
  34.  
  35.  
  36.    struct PhoneLogMarker {
  37.                           char           ProgramName[32];
  38.                           unsigned short ProgramVersion;
  39.                           unsigned short ProgramRevision;
  40.                           char           MarkName[256];
  41.                          };
  42.  
  43.    #define PHONELOG
  44.  #endif
  45.  
  46. /*
  47. ******* PhoneLog/struct PhoneLogEntry ***************************************
  48. *
  49. *   NAME
  50. *    struct PhoneLogEntry -- Structure for log file entries (V33)
  51. *
  52. *   RECORD
  53. *    struct PhoneLogEntry {
  54. *                          char            Number[30+1];
  55. *                          char            Name[80+1];
  56. *                          char            Reason[80+1];
  57. *
  58. *                          char            ProgramName[32];
  59. *                          unsigned short  ProgramVersion;
  60. *                          unsigned short  ProgramRevision;
  61. *
  62. *                          unsigned short  StartDay;
  63. *                          unsigned short  StartMonth;
  64. *                          int             StartYear;
  65. *                          unsigned short  StartHour;
  66. *                          unsigned short  StartMin;
  67. *                          unsigned short  StartSec;
  68. *                          unsigned short  EndDay;
  69. *                          unsigned short  EndMonth;
  70. *                          int             EndYear;
  71. *                          unsigned short  EndHour;
  72. *                          unsigned short  EndMin;
  73. *                          unsigned short  EndSec;
  74. *
  75. *                          unsigned short  Hours;
  76. *                          unsigned short  Mins;
  77. *                          unsigned short  Secs;
  78. *                            };
  79. *
  80. *   FUNCTION
  81. *    Used by PhoneLogGenerator and PhoneLogParser
  82. *
  83. *   ELEMENTS
  84. *    Number          - Phone Number that was called
  85. *    Name            - Name of the host that was called
  86. *    Reason          - Reason why the host is called
  87. *    ProgramName     - Name of the program that makes the call
  88. *    ProgramVersion  - Version of the program that makes the call
  89. *    ProgramRevision - Revision of the program that makes the call
  90. *    StartDay        - Day of the start of the call
  91. *    StartMonth      - Month of the start of the call
  92. *    StartYear       - Year of the start of the call
  93. *    StartHour       - Hour of the start of the call
  94. *    StartMin        - Min of the start of the call
  95. *    StartSec        - Sec of the start of the call
  96. *    EndDay          - Day of the end of the call
  97. *    EndMonth        - Month of the end of the call
  98. *    EndYear         - Year of the end of the call
  99. *    EndHour         - Hour of the end of the call
  100. *    EndMin          - Min of the end of the call
  101. *    EndSec          - Sec of the end of the call
  102. *    Hours           - Hours of the call duration
  103. *    Mins            - Minutes of the call duration
  104. *    Secs            - Seconds of the call duration
  105. *
  106. *   EXAMPLE
  107. *    See PhoneLogGenerator and PhoneLogParser
  108. *
  109. *   NOTES
  110. *    None
  111. *
  112. *   BUGS
  113. *    No known bugs.
  114. *
  115. *   SEE ALSO
  116. *    PhoneLogGenerator,PhoneLogParser, struct PhoneLogMarker
  117. *
  118. *****************************************************************************
  119. *
  120. *
  121. */
  122.  
  123. /*
  124. ******* PhoneLog/struct PhoneLogMarker **************************************
  125. *
  126. *   NAME
  127. *    struct PhoneLogMarker -- Structure for log file marks (V33)
  128. *
  129. *   RECORD
  130. *    struct PhoneLogMarker {
  131. *                           char           ProgramName[32];
  132. *                           unsigned short ProgramVersion;
  133. *                           unsigned short ProgramRevision;
  134. *                           char           MarkName[256];
  135. *                             };
  136. *
  137. *   FUNCTION
  138. *    Used by PhoneLogGenerator and PhoneLogParser
  139. *
  140. *   ELEMENTS
  141. *    ProgramName     - Name of the program that wrote the mark
  142. *    ProgramVersion  - Version of the program that wrote the mark
  143. *    ProgramRevision - Revision of the program that wrote the mark
  144. *    MarkName        - Name of the mark
  145. *
  146. *   EXAMPLE
  147. *    See PhoneLogGenerator and PhoneLogParser
  148. *
  149. *   NOTES
  150. *    None
  151. *
  152. *   BUGS
  153. *    No known bugs.
  154. *
  155. *   SEE ALSO
  156. *    PhoneLogGenerator,PhoneLogParser, struct PhoneLogEntry
  157. *
  158. *****************************************************************************
  159. *
  160. *
  161. */
  162.  
  163. #endif    /* _PHONELOG_H */
  164.